package com.mobartisan.workinglunch.network.response;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by dell on 16/10/03.
 */
public class SnakeResponse<T> implements Serializable {
    public ArrayList<T> result;           // 单个对象
    public boolean successful;
    public String message;

    public boolean isSuccess() {
        return successful;
    }

    public void setSuccess(boolean successful) {
        this.successful = successful;
    }

    public ArrayList<T> getResult() {
        return result;
    }

    public void setResult(ArrayList<T> result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "SnakeResponse{" +
                "result=" + result +
                ", successful=" + successful +
                ", message='" + message + '\'' +
                '}';
    }
}
